<template>
  <div class="NavBreedcrumb" v-if="items[items.length - 1].title != '政策制定' && items[items.length - 1].title != '资金下达' && items[items.length - 1].title != '政策评估'">
    <a-breadcrumb>
      <a-breadcrumb-item v-for="(i, index) in items" :key="index">
        <span v-if="!i.path">{{ i.title }}</span>
        <router-link v-else :to="`${i.path}`">
          {{ i.title }}
        </router-link>
      </a-breadcrumb-item>
    </a-breadcrumb>
    <div style="margin-bottom:16px"></div>
    <div>
      {{ items[items.length - 1].title }}
    </div>
  </div>
</template>

<script>
import { mixins } from '@/utils/mixins';
export default {
  mixins: [mixins],
  computed: {
    items() {
      return this.$route.meta.titles || [];
    }
  }
};
</script>
<style lang="less" scoped>
  .NavBreedcrumb{
    padding: 20px 20px 20px 32px;
    font-size: 20px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
  }
</style>
